
/*
 * @描述: 卡信息 service层
 * @Author: /zlh
 * @Date: 2021-04-17 09:26:22
 * @Last Modified by: zlh
 * @Last Modified time: 2021-06-17 11:55:58
 */

import request from '@/utils/request';
import { secMap } from '@/configs/api.map';

const { api_pushedNoticeSingle, api_pushedNoticeList, api_pushedNoticeNumber, api_getConfigAppId } = secMap;
/**
 * @description 推送单条信息
 * @author zlh
 * @date 2021-10-21
 * @export
 * @param {object} data
 * @returns
 */
export async function pushedNoticeSingle(data) {
    return request(api_pushedNoticeSingle, {
        method: 'POST',
        data
    });
}
/**
 * @description 推送多条信息
 * @author zlh
 * @date 2021-10-21
 * @export
 * @param {object} data
 * @returns
 */
export async function pushedNoticeList(data) {
    return request(api_pushedNoticeList, {
        method: 'POST',
        data
    });
}
/**
 * @description 查看在线人数
 * @author zlh
 * @date 2021-10-22
 * @export
 * @param {object} data
 * @returns
 */
export async function pushedNoticeNumber(data) {
    return request(api_pushedNoticeNumber, {
        method: 'POST',
        data
    });
}
/**
 * @description 获取配置的appId
 * @author zlh
 * @date 2021-10-22
 * @export
 * @param {object} data
 * @returns
 */
export async function getConfigAppId(data) {
    return request(api_getConfigAppId, {
        method: 'GET'
    });
}
